import Vue from 'vue'
import VueRouter from 'vue-router'
import Find from '../views/Find.vue'
import Index from '../views/Index.vue'
import House from '../views/House.vue'
import User from '../views/User.vue'
import Storyplus from '../views/Storyplus.vue'
import Md from '../views/Md.vue'
import Mendian from '../views/Mendian.vue'
import Ing from '../views/Ing.vue'
import Ingstory from '../views/Ingstory.vue'
import Detail from '../views/Detail.vue'
import Party from '../views/Party.vue'
import Story from '../views/Story.vue'
import Storys from '../views/Storys.vue'
import Hx from '../views/Hx.vue'
import Others from '../views/Others.vue'
import Option from '../views/Option.vue'
import Communitys from '../views/Communitys.vue'


import Quanbuhuxing from '../components/Quanbuhuxing.vue'
import Indexlist3 from '../components/Indexlist3.vue'
import Login from '../components/Login.vue'
import Register from '../components/Register.vue'
Vue.use(VueRouter)

const routes = [
  {
    path: '/communitys',
    name: 'Communitys', //活动详情
    component: Communitys
  },
  {
    path: '/register',
    name: 'Register', //登录
    component: Register
  },
  {
    path: '/login',
    name: 'Login', //登录
    component: Login
  },
  {
        path: '/option',
        name: 'Option', //门店0
        component:Option
      },
  {
        path: '/others',
        name: 'Others', //门店0
        component:Others
      },
      {
        path: '/hx',
        name: 'Hx', //门店0
        component:Hx
      },
     {
        path: '/story',
        name: 'Story', //门店0
        component:Story
      },
    {
        path: '/storys',
        name: 'Storys', //门店0
        component:Storys
      },
     {
        path: '/party',
        name: 'Party', //门店0
        component:Party
      },
     {
        path: '/detail',
        name: 'Detail', //门店0
        component:Detail
      },
      {
        path: '/md',
        name: 'Md', //门店0
        component: Md
      },
      {
        path: '/mendian',
        name: 'Mendian', //门店
        component: Mendian
      },
      {
        path: '/ing',
        name: 'Ing', //图片
        component: Ing
      },
      {
        path: '/ingstory',
        name: 'Ingstory', //图片故事
        component: Ingstory
      },
  {
    path: '/storyplus',
    name: 'Storyplus', //泊寓+
    component: Storyplus
  },
  {
    path: '/indexlist3',
    name: 'Indexlist3',  //城市
    component: Indexlist3
  },
  {
    path: '/house',
    name: 'House',  //找房
    meta:{
      ifShowTabbar:true
    },
    component: House
  },
  {
    path: '/user',
    name: 'User',  //用户
    meta:{
      ifShowTabbar:true
    },
    component: User
  },
  {
    path: '/',
    name: 'Index',  //首页
    meta:{
      ifShowTabbar:true
    },
    component: Index
  },
  {
    path: '/find', //发现
    name: 'Find',
    meta:{
      ifShowTabbar:true
    },
    component: Find
  },
  {
    path: '/quanbuhuxing',
    name: 'Quanbuhuxing',
    component: Quanbuhuxing
  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
